package com.iweb.springboot_demo1.controller;

import com.iweb.springboot_demo1.service.HelloTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    private HelloTest helloTest;
    @GetMapping("/hellotest")
    public String hellotest() throws InterruptedException {
        helloTest.hello();
        return "hello!!!!";
    }
}
